<?php
include('../includes/config.php');

require_once(DOCTRINE_INCLUDE_STRING);

spl_autoload_register(array('Doctrine', 'autoload'));
//Doctrine_Manager::getInstance()->setAttribute('singularize_import', false);
Doctrine_Manager::connection('mysql://root:haccp@localhost/stocks');

// import method takes one parameter: the import directory (the directory where
// the generated record files will be put in
Doctrine::generateYamlFromDb(DIR_FT."yaml/yaml.yml");
Doctrine::generateModelsFromYaml(DIR_FT."yaml/yaml.yml", DIR_FT.'models');
?>
